/*需要切换的颜色变量*/
$color-primary1:#f9b90f; /* 更换的颜色 */
$color-primary2:#6699dd; /* 更换的颜色 */
$color-primary3:#c20c0c; /* 更换的颜色 */
$color-primary4:#ccc; /* 更换的颜色 */

$background-color-primary1:#f9b90f; /* 更换的颜色 */
$background-color-primary2:#6699dd; /* 更换的颜色 */
$background-color-primary3:#c20c0c; /* 更换的颜色 */
$background-color-primary4:#000; /* 更换的颜色 */

$border-color-primary1:#f9b90f; /* 更换的颜色 */
$border-color-primary2:#6699dd; /* 更换的颜色 */
$border-color-primary3:#c20c0c; /* 更换的颜色 */
$border-color-primary4:#ccc; /* 更换的颜色 */

/*定义方法*/
@mixin color_primary($color){
    color:$color;
    /*判断匹配*/
    [data-theme="primary1"] & {
        color:$color-primary1;
    }
    [data-theme="primary2"] & {
        color:$color-primary2;
    }
    [data-theme="primary3"] & {
        color:$color-primary3;
    }
    [data-theme="primary4"] & {
        color:$color-primary4;
    }
}
@mixin background-color_primary($background-color){
    background-color:$background-color;
    /*判断匹配*/
    [data-theme="primary1"] & {
        background-color:$background-color-primary1;
    }
    [data-theme="primary2"] & {
        background-color:$background-color-primary2;
    }
    [data-theme="primary3"] & {
        background-color:$background-color-primary3;
    }
    [data-theme="primary4"] & {
        background-color:$background-color-primary4;
    }
}
@mixin border-color_primary($border-color){
    border-color:$border-color;
    /*判断匹配*/
    [data-theme="primary1"] & {
        border-color:$border-color-primary1;
    }
    [data-theme="primary2"] & {
        border-color:$border-color-primary2;
    }
    [data-theme="primary3"] & {
        border-color:$border-color-primary3;
    }
    [data-theme="primary4"] & {
        border-color:$border-color-primary4;
    }
}